Telegram Group & Telegram Channel
9. Program to Calculate Binary Number Calculation.

import java.util.*;

class BinaryCalculator
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);

System.out.print("First Binary: ");
String binOne = in.next();

System.out.print("Second Binary: ");
String binTwo = in.next();

int left = Integer.parseInt(binOne, 2);
int right = Integer.parseInt(binTwo, 2);

System.out.println("Sum of the binary numbers : " + Integer.toBinaryString(left + right));
System.out.println("Difference of the binary numbers : " + Integer.toBinaryString(left - right));
System.out.println("Product of the binary numbers : " + Integer.toBinaryString(left * right));
System.out.println("Quotient of the binary numbers : " + Integer.toBinaryString(left / right));
}
}

@java_codings



tg-me.com/java_codings/13
Create:
Last Update:

9. Program to Calculate Binary Number Calculation.

import java.util.*;

class BinaryCalculator
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);

System.out.print("First Binary: ");
String binOne = in.next();

System.out.print("Second Binary: ");
String binTwo = in.next();

int left = Integer.parseInt(binOne, 2);
int right = Integer.parseInt(binTwo, 2);

System.out.println("Sum of the binary numbers : " + Integer.toBinaryString(left + right));
System.out.println("Difference of the binary numbers : " + Integer.toBinaryString(left - right));
System.out.println("Product of the binary numbers : " + Integer.toBinaryString(left * right));
System.out.println("Quotient of the binary numbers : " + Integer.toBinaryString(left / right));
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/13

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless β€œ$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

Launched in 2013, Telegram allows users to broadcast messages to a following via β€œchannels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.Advance Java ‍ from no


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA